package com.simtop.picture.service;

import com.simtop.picture.common.ServerResponse;
import com.simtop.picture.pojo.Role;
import com.simtop.picture.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserService {
    User login(User user);

    List<Role> getRole();

    ServerResponse<String> register(User user);

    ServerResponse<String>  updatePassword(User user);

    ServerResponse<String> forgetSendEmailCode(String email);

    ServerResponse<String> generateCheckCode(String email);


}
